package cn.com.ui;

import android.content.Intent;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;
import cn.com.BaseActivity;
import cn.com.R;
import cn.com.TabHostMain;
/**
 * 添加好友
 * @author ChonZY
 */
public class AddFriendsActivity extends BaseActivity implements OnClickListener {
	private TextView tv_yqFriends ;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.addfriends);
		init();
		
	}

	private void init() {
		initHead();
		tv_centerTop.setText("搜号码-添加好友");
		tv_leftTop.setVisibility(View.VISIBLE);
		tv_leftTop.setText(R.string.tv_top_back);
		tv_leftTop.setOnClickListener(this);
		tv_yqFriends = (TextView) findViewById(R.id.tv_addfriends_yqf);
		tv_yqFriends.getPaint().setFlags(Paint.UNDERLINE_TEXT_FLAG);//下划线
		tv_yqFriends.setTextColor(Color.BLUE);
	}

	@Override
	public void onClick(View v) {
		Intent intent = null ;
		switch (v.getId()) {
		// top back 
		case R.id.tv_toptitle_tv01_left_title:
			intent = new Intent(this, TabHostMain.class);
			intent.putExtra("main_tab_name", "AddFriendsActivity");
			startActivity(intent);
			finish();
			break;

		default:
			break;
		}
	}

}
